<extend name="base"/>

<block name="extend">
	<script language="javascript">
		$(document).ready(main_obj.page_init);
		$(document).ready(member_obj.member_init);
	</script>
</block>

<block name="body">
	<div class="r_con"><div id="member">
      
        <form class="search" id="search_form" method="post" action="{:U('Users/index')}">
           	 关键词：<input type="text" name="Keyword" value="{$keyword}" class="form_input" size="15" />
       		<!-- 帐号状态：<select name="AccountStatus">
                <option value="">--请选择--</option>
                <option value="1">正常</option>
                <option value="2">锁定</option>
                <option value="3">即将过期</option>
                <option value="4">已过期</option>
                <option value="5">试用</option>
            </select> -->
           	 开通时间：<input name="ExpiredTime_S" value="{$stime}" type="text" class="form_input" size="10" readonly="readonly" />-<input name="ExpiredTime_E" value="{$etime}" type="text" class="form_input" size="10" readonly="readonly" />
            		 <input type="submit" class="search_btn" value="搜索" />
            		 <!-- <input type="hidden" name="m" value="member" /> -->
        </form>
        
        
        <table width="100%" align="center" border="0" cellpadding="5" cellspacing="0" class="r_con_table">
            <thead>
                <tr>
                    <td width="8%" nowrap="nowrap">序号</td>
                    <td width="15%" nowrap="nowrap">用户名</td>
                    <td width="5%" nowrap="nowrap">用户类型</td>
                    <td width="18%" nowrap="nowrap">客户名称</td>
                    <td width="12%" nowrap="nowrap">短信余额</td>
                    <td width="12%" nowrap="nowrap">开通时间</td>
                   <!--  <td width="12%" nowrap="nowrap">到期时间</td> -->
                    <td width="12%" nowrap="nowrap">帐号状态</td>
                    <td width="10%" nowrap="nowrap" class="last">操作</td>
                </tr>
            </thead>
            <tbody>
            
            <foreach name="lists" item="v">
               <tr>
                    <td nowrap="nowrap">{$v.uid}</td>
                    <td nowrap="nowrap">{$v.nickname}</td>
                    <td nowrap="nowrap"><eq name="v.usertype" value="1">普通用户<else/>代理商</eq></td>
                    <td>{$v.customname}</td>
                    <td nowrap="nowrap">{$v.sms}条</td>
                    <td nowrap="nowrap">{$v.reg_time|date="Y-m-d H:i:s",###}</td>
                    <!-- <td nowrap="nowrap">{$v.endtime|date="Y-m-d H:i:s",###}</td> -->
                    <td nowrap="nowrap"><eq name="v.istest" value="1">测试用户<else/>正常</eq></td>
                    <td class="last" nowrap="nowrap">
                      <!--   <a href="{:U('Users/wechat',array('uid'=>$v['uid']))}"><img src="__PUBLIC__/Member/images/ico/wechat.png" align="absmiddle" alt="修改微信信息" /></a><a href=""></a>
                        <a href="{:U('Users/recharge',array('uid'=>$v['uid']))}"><img src="__PUBLIC__/Member/images/ico/rmb.png" align="absmiddle" alt="充值" /></a><a href=""></a> -->
                        <a href="{:U('Users/userChange',array('uid'=>$v['uid']))}"><img src="__PUBLIC__/Member/images/ico/mod.gif" align="absmiddle" alt="修改" /></a><a href=""></a>
                        <a href="{:U('Users/detail',array('uid'=>$v['uid']))}"><img src="__PUBLIC__/Member/images/ico/view.gif" align="absmiddle" alt="显示用户详细信息" /></a>
                    </td>
                </tr>
                
            </foreach>
            </tbody>
        </table>
        <div class="blank20"></div>
        <div id="turn_page">{$page}</div>
    </div></div>
		
</block>